/**
 * 文件上传路由
 * 处理用户头像等文件上传功能
 */

const express = require('express');
const { uploadAvatar, upload } = require('../controllers/upload.controller');
const { authenticateToken } = require('../middleware/auth.middleware');

const router = express.Router();

// 上传用户头像路由
router.post('/avatar', authenticateToken, upload, uploadAvatar);

module.exports = router;